from django.conf.urls.defaults import *

urlpatterns = patterns('hyperlog.views',

    # Main index
    url(r'^hyperlog/$', 'index', name='hyperlog_index'),

    # Show sessions
    url(r'^hyperlog/sessions/$',
        'show_sessions', name='hyperlog_show_sessions'),

    # Show single session
    url(r'^hyperlog/session/(?P<session_id>\w+)/$',
        'show_sessions', name='hyperlog_show_single_session'),

    # Show admin actions
    url(r'^hyperlog/admin_log/$',
        'show_admin_log', name='hyperlog_show_admin_log'),

    # Show user admin actions
    url(r'^hyperlog/admin_log/(?P<user_id>\d+)/$',
        'show_admin_log', name='hyperlog_show_admin_user_log'),

    # Show object admin actions
    url(r'^hyperlog/admin_log/(?P<contenttype_id>\d+)/(?P<object_id>[\w_-]+)/$',
        'show_admin_log', name='hyperlog_show_admin_object_log'),

)
